package com.endlessblue.visa.util;

import java.lang.reflect.InvocationTargetException;

import org.apache.commons.beanutils.BeanUtils;

/**
 * bean 工具类
 * 
 * @author sonta
 *
 */
public class BeanUtil {
	
	/**
	 * 对象属性复制
	 * @param target
	 * @param orign
	 */
	public static void copyProperties(Object target, Object orign) {
		try {
			BeanUtils.copyProperties(target, orign);
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		} catch (InvocationTargetException e) {
			e.printStackTrace();
		}
	}
	
}
